package com.catazy.cameralib

import android.util.Log
import org.opencv.android.OpenCVLoader

/**
 * 作者: Tao
 * 日期: 2024/3/7
 * 时间: 18:55
 * 描述:
 */
class OpenCvManager {

    companion object{
        val INSTANCE: OpenCvManager by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
            OpenCvManager()
        }
    }

    fun initOpenCv(){
        if (!OpenCVLoader.initLocal()) {
            Log.e("OpenCvManager", "OpenCV初始化失败")
        } else {
            Log.e("OpenCvManager", "OpenCV初始化成功")
        }
    }
}